package com.dries.portal.module.xxshop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dries.portal.module.convener.entity.Convener;
import com.dries.portal.module.convener.entity.JoinConvener;
import com.dries.portal.module.xxshop.entity.Userorder;
import com.dries.portal.module.xxshop.vo.UserOrderInfoVo;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * 用户订单
 *
 * @author dries
 * @email samphsanie@gmail.com
 * @date 2020-10-14 14:11:07
 */
public interface IUserorderService extends IService<Userorder> {

    UserOrderInfoVo getOrderInfoByOrderId(Long orderid);

    UserOrderInfoVo createOrderByConvener(Convener convener);

    void createOrder(Userorder userorder, List<JoinConvener> joinConveners, Convener convener);

    PageInfo<UserOrderInfoVo> orderList(Map<String, Object> params);

    UserOrderInfoVo getOrderInfoByUserId(Long orderId, Long userId);
}

